package ru.susu.algebra.ui.field;
/**
 * @author akargapolov
 * @since: 15.03.2009
 */
public class SimpleLegendField<T> implements ILegendField<T>
{
	private String _identifier;
	private T _value;

	public SimpleLegendField(String identifier, T value)
	{
		_identifier = identifier;
		_value = value;
	}

	@Override
	public String getIdentifier()
	{
		return _identifier;
	}

	@Override
	public T getValue()
	{
		return _value;
	}

	@Override
	public void setIdentifier(String identifier)
	{
		_identifier = identifier;
	}

	@Override
	public void setValue(T value)
	{
		_value = value;
	}

	@Override
	public String toString()
	{
		return _identifier;
	}

}
